package alarm;

import java.text.SimpleDateFormat;
import java.util.Date;
import autoschedule.Time;

/* *
 * The Notice Class will encapsulate both the date, time
 * and message for the Alarm System.
 * 
 * The Notice Object will be passed around containing 
 * this information instead of the raw values.
 * @author Benjamin Landers
 * @author Colin Watson
 * @verson 429 
 */
public class Notice {
	/* 
	 * Member variables
	 */
	private Date startDate;
	private Date endDate;
	private String message;
	private String type;

	/*
	 * Constructors
	 */
	public Notice(Date startDate, Date endDate, String message, String type){
		this.startDate = startDate;
		this.endDate = endDate;
		this.message = message;
		this.type = type;
	}
	
	/*
	 * Getters
	 */
	public Date getStartDate(){
		return this.startDate;
	}

	public Date getEndDate(){
		return this.endDate;
	}

	
	public String getMessage(){
		return this.message;
	}
	
	public String getType(){
		return this.type;
	}
	
	@Override
	public String toString() {
		return "Notice [startDate=" + startDate + ", endDate=" + endDate
				+ ", message=" + message + ", type=" + type + "]";
	}

	/*
	 * For testing purposes
	 */
	public static void main(String[] args){
		Notice test_note = new Notice(new Date(), new Date(), "New Message", "Game");
		String test = test_note.toString();
		System.out.println(test);
	}
}